<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../vue.js"></script>
</head>

<body>
    <div class="box">
        <div v-for='(value,key,index) in obj' v-if='value === 20'>{{value}}---{{key}}---{{index}} </div>
    </div>
    <script>
        let vm = new Vue({
            el: '.box',
            data: {
                obj: {
                    name: 'zhangsan',
                    age: 20,
                    sex: '男'
                }
            }
        })
    </script>
</body>

</html>